package fi.jamk.ourcookingapp.backend.model;

import java.io.Serializable;
import java.util.Date;

/**
 * This is a comment added to receipts
 * @author Marius
 */
public class Comment implements Serializable {

	private static final long serialVersionUID = 1L;

	private User user;
	
	private Receipt receipt;
	
	private int parentCommentID;
	
	private String text;
	
	private Date date;

	private int ID;
	
	public Comment(String text, Date date, User user){
		this.text = text;
		this.date = date;
		this.user = user;
	}
	
	public Comment(int id) {
		this.ID = id;
	}
	
	public int getID() {
		return ID;
	}
	
	public void setID(int iD) {
		ID = iD;
	}

	public Comment() {
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Receipt getRecipt() {
		return receipt;
	}

	public void setReciept(Receipt receipt) {
		this.receipt = receipt;
	}

	public int getParentComment() {
		return parentCommentID;
	}

	public void setParentComment(int comment) {
		this.parentCommentID = comment;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

}